<?LassoScript
//[

	define_tag:'urlReq',
			-namespace='er_',
			-Priority='replace',
			-Optional='pathFilter',
			-Required='path',
			-Description='Takes a response file path and splits it up into the nav path';
			
			local:'out' = (array);
			local:'defaultFilter'=(array:'/private_admin/','/images/');
			
			(local_defined('pathFilter')) ? #pathFilter->(merge:#defaultFilter);

			(!(local_defined('pathFilter'))) ? local('pathFilter' = #defaultFilter);
			
			
			if:#path && #path != '/';
				#path->removeLeading:'/';
				// add filter routine
				
					iterate:#pathFilter, local:'thisPath';
					//	while:#path != #thisPath:
						if:#thisPath != #path;
							#out = #path->Split:'/';
						/if;
						//#out->remove;
					//	/while;
					/iterate;
				
			/if;
			

			(#out->(last) == '') ? (#out->remove);
			(#out->(size) == 1 && #out->(get:1)=='index.lasso') ? (#out = array);
			return:@#out;
/define_tag;

//]
?>